<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<div class="page_left settingspage_left">
    <ul>
        <li><a class="${cur==1?'cur':''}" href="${basePath}v2/factory/manage/showView">二维码</a></li>
        <li><a class="${cur==2?'cur':''}" href="${basePath}v2/factory/manage/showShortCodeView">工厂简码</a></li>
        <li>
            <dl>
                <dt><a class="settings_setbtn ${cur==3 or cur==4?'cur':''}" href="javascript:;">账号与安全</a></dt>
                <dd style="${cur==3 or cur==4?'display:block':'display:none'}"><a class="${cur==3?'cur':''}" href="${basePath}v2/factory/manage/showMobileView">更换手机号码</a></dd>
                <dd style="${cur==3 or cur==4?'display:block':'display:none'}"><a class="${cur==4?'cur':''}" href="${basePath}v2/factory/manage/showPassWordView">修改登录密码</a></dd>
            </dl>
        </li>
    </ul>
</div>

<script type="text/javascript">
    //左边下拉事件
    $(".settingspage_left dl dt a").on("click", function(){
        if($(".settingspage_left dl dd").is(":hidden")){
            $(".settingspage_left dl dd").stop().slideDown();
            $(this).addClass("cur");
        }else{
            $(".settingspage_left dl dd").stop().slideUp().children("a").removeClass("cur");
            $(this).removeClass("cur");
        }
    });

</script>